

#include <iostream>
#include <climits>
#include <string>

using namespace std;

int main()
{
    // 识别汉语
    std::cout << "你好，世界！" << endl;

    int n_int = INT_MAX;
    short n_short = SHRT_MAX;
    long n_long = LONG_MAX;
    long long n_llong = LLONG_MAX;

    std::cout << "int " << sizeof(int) << endl;
    std::cout << "short " << sizeof(short) << endl;
    std::cout << "long " << sizeof(long) << endl;
    std::cout << "long long " << sizeof(long long) << endl;

    char ch;
    std::cout << "enter a character: " << endl;
    std::cin >> ch;
    std::cout << "Thank you for the " << ch << " character." << endl;

    // 输出ch的ascii码
    std::cout << "The ASCII code for " << ch << " is " << int(ch) << endl;

    // 输出报警/a
    char alarm = '\a';
    std::cout << alarm << "Don't do that again!\a\n";
    
    // 布尔值
    bool is_ture;
    is_ture = true;
    std::cout << "true: " << is_ture << endl;
    is_ture = 0;
    std::cout << "isture: " << is_ture << endl;

    // 
    cout.setf(ios_base::fixed, ios_base::floatfield);
    float tub = 10.0 / 3.0;
    const float million = 1.0e6;
    std::cout << "tub: " << tub << endl;
    std::cout << "million * tub: " << million * tub << endl;
    
     




    return 0;

}